FROM maven:3.9.4-openjdk-11 AS build
WORKDIR /app
COPY . .
RUN mvn clean package -DskipTests

FROM openjdk:11-jre-slim
WORKDIR /app
COPY --from=build /app/target/*.jar redis-camellia-proxy-client-0.0.1-SNAPSHOT.jar
ENTRYPOINT ["java", "-jar", "redis-camellia-proxy-client-0.0.1-SNAPSHOT.jar"]
